<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>댓글 시스템</title>
</head>
<body>

	<table>
		<tr>
			<form action="joinuser" method="GET">
				<input type="submit" value="회원가입">
			</form>
			<form action="login" method="GET">
				<input type="submit" value="글쓰기">
			</form>
		</tr>
		<c:forEach items="${commentList}" var="comment">
			<tr>
				<td><img name="writer_img" alt="" src="people.png" /></td>
				<td>${comment.name}</td>
				<td>${comment.comment}</td>
				<td><input type="button" value="추천(${comment.recommend})">
				</td>
				<td><input type="button" value="반대(${comment.oppose})">
				</td>
				<td>${comment.date}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>